From: Jonas Dreßler Date: Wed, 11 Sep 2019 12:23:44 +0000 (+0200) Subject: extensionSystem: Fix a wrong error message X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~811^2^2~103 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2a32fb2e72573c80513e65fc0c8fb071575601d8;p=gnome-shell.git extensionSystem: Fix a wrong error message The extension object is added to the `this._extensions` Map inside `createExtensionObject`, not inside `loadExtension`. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96 --- diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js index a3b8d615d..47750bda3 100644 --- a/js/ui/extensionSystem.js +++ b/js/ui/extensionSystem.js @@ -306,7 +306,7 @@ var ExtensionManager = class { let dir = extension.dir; if (!extension) - throw new Error("Extension was not properly created. Call loadExtension first"); + throw new Error("Extension was not properly created. Call createExtensionObject first"); let extensionJs = dir.get_child('extension.js'); if (!extensionJs.query_exists(null)) {